{% extends 'oratk_app/master.html' %}
{% block tag_left %}
    {% include 'oratk_app/tag_left_user.html' %}
{% endblock %}
{% block userinfo %}
    <div class="col-sm-9 col-sm-offset-3 col-md-10 col-md-offset-2 main">
        <h2 class="page-header">后台进程管理</h2>
            <form class="navbar-form navbar-left" role="search">
            <button type="button" class="btn btn-default"
                    onclick="javascrtpt:window.location.href='/oratk_app/cron_process_mgr'"><span
                    class="glyphicon glyphicon-repeat" aria-hidden="true"></span> 刷新
            </button>
        </form>
        <table class="table table-striped table-bordered table-hover">
            <thead>
            <tr>
                 <th>process_name</th>
                 <th>running_status</th>
                <th>options</th>
            </thead>
            <tbody>
            {% for i in return_list %}
                <tr>
                    <td>{{ i.name }}</td>
                    <td style="color: {{ i.color }}">{{ i.run_status }}</td>
                    <td><a  href="/oratk_app/cron_process_change?nid={{ i.id }}&method=start"    style="{{ i.run_style_str }}" >启动</a> | <a  href="/oratk_app/cron_process_change?nid={{ i.id }}&method=stop"    style="{{ i.stop_style_str }}" >停止</a></td>
                </tr>
            {% endfor %}
            </tbody>
        </table>
    </div>
{% endblock %}